<template>

    <div>
        <h1>钉钉登录</h1>
    </div>


</template>


<script setup>
import { ref, onMounted } from 'vue'
import http from '../http'
import { useRoute } from 'vue-router';
import { ElMessage } from 'element-plus';


const route = useRoute()
const data = route.query.code
console.log(data)
const type = localStorage.getItem('type')


const test = () => {
    http.post('app/sflogin/',  { 'code': data ,'type':type} ).then(res => {
        console.log(res)

    })
}

onMounted(() => {
    test()
})

</script>